﻿<UserControl x:Class="Wizard.CoffeeView.CoffeeSummaryPageView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008">
    <UserControl.Resources>

        <Style TargetType="{x:Type TextBlock}">
            <Setter Property="VerticalAlignment"
                    Value="Center" />
            <Setter Property="Margin"
                    Value="7,0,0,7" />
        </Style>

        <!--this style inherits from the above style-->
        <Style BasedOn="{StaticResource {x:Type TextBlock}}"
               TargetType="{x:Type TextBlock}"
               x:Key="headerTextStyle">
            <Setter Property="FontWeight"
                    Value="Bold" />
        </Style>
    </UserControl.Resources>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <TextBlock Grid.Column="0"
                   Grid.Row="0"
                   Text="DrinkSize"
                   Style="{StaticResource headerTextStyle}" />
        <TextBlock Grid.Column="0"
                   Grid.Row="1"
                   Text="BeanType"
                   Style="{StaticResource headerTextStyle}" />
        <TextBlock Grid.Column="0"
                   Grid.Row="2"
                   Text="Flavorings"
                   Style="{StaticResource headerTextStyle}" />
        <TextBlock Grid.Column="0"
                   Grid.Row="3"
                   Text="Temperature"
                   Style="{StaticResource headerTextStyle}" />

        <TextBlock Grid.Column="1"
                   Grid.Row="0"
                   Text="{Binding Path=DrinkSizes}" />
        <TextBlock Grid.Column="1"
                   Grid.Row="1"
                   Text="{Binding Path=BeanType}" />
        <TextBlock Grid.Column="1"
                   Grid.Row="2"
                   Text="{Binding Path=Flavorings}"
                   TextWrapping="Wrap" />
        <TextBlock Grid.Column="1"
                   Grid.Row="3"
                   Text="{Binding Path=Temperature}" />
    </Grid>
</UserControl>
